{% extends '::base.html.twig' %}
{% block title %}Edición de Modulos{% endblock %}

{% block greensectiontitle %}Editar Modulo{% endblock %}

{% block body %}s

<h2>Editar Modulo</h2>

<form id="editForm" action="{{ path('modulo_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>
    {{ form_widget(edit_form) }}


    {% macro prototype(unidad) %}
        <tr>
            <td class="center">{{ form_widget(unidad.codigo) }}</td>
            <td>{{ form_widget(carrera.nombre) }}</td>
            <td><div id="controls" style="text-align: center;"><a href="#">Quitar</a></div></td>
        </tr>
    {% endmacro %}   

        <p>
            <button type="submit">Edit</button>
        </p>
    </form>

    <ul class="record_actions">
        <li>
            <a href="{{ path('modulo') }}">
                Back to the list
            </a>
        </li>
        <li>
            <form action="{{ path('modulo_delete', { 'id': entity.id }) }}" method="post">
            {{ form_widget(delete_form) }}
                    <button type="submit">Delete</button>
                </form>
            </li>
        </ul>
{% endblock %}
